package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component("alertTask")
@Slf4j
public class AlertTask {

    @Autowired
    private IAlertRuleService alertRuleService;

    public  void deviceDataAlertFilter() {
        log.info("开始执行设备数据过滤任务");
        alertRuleService.alertFilter();
        log.info("设备数据过滤任务执行完毕");
    }
}
